package com.project.bean.service.impl;

import com.project.bean.dao.IUserDao;
import com.project.bean.service.IUserService;

import java.util.List;

public class UserServiceImpl implements IUserService {
    private Integer id;
    private String name;
    private List list;
    private IUserDao dao;
    private String sex;
    private String phone;

    public UserServiceImpl() {
    }

    public UserServiceImpl(String name, String sex, String phone) {
        this.name = name;
        this.sex = sex;
        this.phone = phone;
    }

    @Override
    public void addUser() {
        System.out.println("添加业务操作");
        System.out.println("id:"+id+"   name:"+name+"   list:"+list);
        System.out.println("name:"+name+" sex:"+sex+" phone:"+phone );
        dao.add();
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public List getList() {
        return list;
    }

    public void setList(List list) {
        this.list = list;
    }

    public IUserDao getDao() {
        return dao;
    }

    public void setDao(IUserDao dao) {
        this.dao = dao;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }
}
